package com.happyfamily.springboot.crowdsourcingplatform.service.sun;

import com.happyfamily.springboot.crowdsourcingplatform.model.Alliance;
import com.happyfamily.springboot.crowdsourcingplatform.model.User_alliance;

import java.util.List;

public interface AllianceService
{
	public abstract List<Alliance> getList(Long uid,Integer limit,Integer end,String aname);

	public abstract int getSum(Long uid,String aname);

	public abstract List<Alliance> getList2(Long uid,Integer limit,Integer end,String aname);

	public abstract int getSum2(Long uid,String aname);

	public abstract List<Alliance> getMyAlliance(Long uid);

	public abstract String getServerType(Long sid);

	public abstract boolean addUserAlliance(User_alliance ua);

	public abstract String getServerValue(String sname);

	public abstract Alliance getAlliance(Long aid);

	public abstract Long addAlliance(Alliance alliance);

	public abstract boolean checkAlliance(Long uid,Long aid);

	public abstract boolean deleteAlliance(Long aid);

	public abstract boolean deleteAll(Long aid);

	public abstract User_alliance getUa(Long aid,Long uid);

	public abstract boolean backAlliance(Long aid,Long uid);

	public abstract List<User_alliance> getUsers(Long aid);

	public abstract boolean updateState(Long aid,Long uid,String state);

	public abstract boolean checkAccount(String account);

	public abstract boolean checkOrder(Long aid);
}